package com.xuan.yuapi.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuan.common.model.entity.UserInterfaceInfo;
import com.xuan.yuapi.model.dto.user_interfaceinfo.UserInterfaceInfoQueryRequest;


/**
* @author 清凉茶
* @description 针对表【user_interface_info】的数据库操作Service
* @createDate 2024-05-22 10:39:32
*/
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {
    /**
     *  校验参数的合法性
     * @param userInterfaceInfo
     * @param isAdd 是否为管理员
     */
    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean isAdd);


    boolean invokeCount(Long interfaceInfoId, Long userId);
    QueryWrapper<UserInterfaceInfo> getQueryWrapper(UserInterfaceInfoQueryRequest userInterfaceInfoQueryRequest);

}
